<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div id="sidebar">
	<h3>唱片分类</h3>
	<ul class="categories">
		<c:forEach items="${genreList }" var="g" varStatus="vs">
			<c:if test="${vs.index %2 == 0 }">
				<li><a href="list?genreId=${g.id}">${g.name}</a></li>
			</c:if>
			<c:if test="${vs.index % 2 != 0 }">
				<li><a class="even" href="list?genreId=${g.id}">${g.name}</a></li>
			</c:if>
		</c:forEach>
	</ul>
</div>